package org.hrc.puzzleGame.controller;

import org.hrc.puzzleGame.mapper.UserMapper;
import org.hrc.puzzleGame.mapper.impl.UserMapperImpl;
import org.hrc.puzzleGame.model.User;

import java.sql.SQLException;

public class GameController {
    private UserMapper userMapper = new UserMapperImpl();
    public  void step(User user) throws SQLException {
        System.out.println("完成步数" + user.getStep());
        System.out.println(user.getId());
        userMapper.updateUser(user);
    }
}
